package com.uton.rfidcontroller.common.utils;

import android.util.Log;

/**
 *
 * @author 王家宝
 * @date 2017/8/30
 * Email:639586819@qq.com
 * Tel:18241150668
 */
public class LogUtil {
    public static boolean showLogEnabled;
    private static final String TAG = "LogUtil";

    public static void out(String msg) {
        if (showLogEnabled) {
            System.out.println(msg);
        }
    }

    public static void d(String msg) {
        if (showLogEnabled) {
            Log.d(TAG, msg);
        }
    }

    public static void i(String msg) {
        if (showLogEnabled) {
            Log.i(TAG, msg);
        }
    }

    public static void v(String msg) {
        if (showLogEnabled) {
            Log.v(TAG, msg);
        }
    }

    public static void w(String msg) {
        if (showLogEnabled) {
            Log.w(TAG, msg);
        }
    }

    public static void e(String msg) {
        if (showLogEnabled) {
            Log.e(TAG, msg);
        }
    }

}
